/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package my.presentation;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author acer
 */

@ManagedBean(name = "MenuView")
@RequestScoped
public class MenuView implements Serializable {

    //this managed property will read value from request parameter pageId

    
    private String breadcrumbs;
    private String active_index;
    private String active_recepty;

    public MenuView() {
        this.breadcrumbs = "Kuchařka";
        this.active_index = "active";
        this.active_recepty = "";
    }

    public String getBreadcrumbs() {
        return breadcrumbs;
    }

    public String getActive_index() {
        return active_index;
    }

    public String getActive_recepty() {
        return active_recepty;
    }
   
    public String showIndex(){
        this.active_index = "active";
        this.active_recepty = "";
        return "index";
    }
    
    public String showRecepty(){
        this.active_index = "";
        this.active_recepty = "active";
        return "recepty";
    }
    
}
